home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
unix
/
du_1_4
/
part01
/
du.doc
< prev
next >
Wrap
Text File
|
1990-10-08
|
3KB
|
110 lines
DU 1.4 AMIGA DU 1.4
NAME
du -- print out disc usage
SYNOPSIS
du [ -s | -v ] [ -S | -F | -T] [ filename ]
DESCRIPTION
du prints out a summary of disc usage for a
file or directory. It is pure, and thus can
be made resident. It takes up only 1640
bytes.
The options to du are:
-v verbose listing. du usually prints out
only total directory contents. With the
-v option, du prints out the block size
of every file.
-s short listing. Print only the total
number of blocks used.
-S Calculate the number of blocks used as
if by the old (Slow) 488 byte-block
file system.
-F Calculate the number of blocks used as
if by the new (Fast) 512 byte-block file
system.
-T Calculate the number of blocks that
would be used by a POSIX tar format
archive. Note that when this option is
used, the resulting file size will be
greater than the option given, except
when made on a raw device such as RDF:.
Moreover, most tar archivers round the
size of the output file up to the
nearest block boundary (often 10k).
Using the -S and -F options, one can easily
work out whether a directory will fit when
moved between floppy and hard disc. Without
either option, du interrogates the file
system to work out the blocksize.
CAVEATS
du correctly accounts for directory blocks
and file list blocks on current versions of
AmigaDOS file systems. It will work
incorectly on MS-DOS volumes mounted via
msh: or crossdos.
AUTHOR
Peter Chubb
peterc@softway.sw.oz.au
(... !uunet!munnari!softway.sw.oz!peterc)
CHANGES
Version 1.2: First released version.
Version 1.3: Fixed bug when calculating
blocksize for moderately large
files, and an off-by-one bug
for small files.
Version 1.4: Moved info about files into
separate table, to allow easy
extension to new filesystems.
(It's still not flexible enough,
though).
DISTRIBUTION
Copyright 1990 Peter Chubb
All rights reserved.
This program and its associated
documentation may not be distributed for
profit. It may be distributed provided
a) no charge is made other than for
reasonable copying and media expenses,
b) no change is made to the source,
documentation or binary, that is not clearly
marked as being a change, and
c) all files are provided. These comprise:
du.doc -- this documentation file
du -- the program binary (or
du.uu, its uuencoded form)
du.c -- the program source.
This program is not warranted, or
guaranteed. You get exactly what you paid
for -- a copy of the program to do as you
wish with. If it crashes your machine,
writes rude letters to your spouse, or
explodes in your face ... caveat emptor!
However, to the best of my knowledge and
belief it works as advertised.